package com.dailyblue.java.project.bookstore.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dailyblue.java.project.bookstore.bean.User;
import com.dailyblue.java.project.bookstore.util.JsonResult;

public interface UserService extends IService<User> {

    JsonResult find(int page, int size);

    JsonResult find(String name, int page, int size);

    JsonResult updatePassword(long id);

    JsonResult deleteUser(String id);

    JsonResult disableUser(String id,int state);

    JsonResult updateUser(User user);

    JsonResult login(User user);
}
